Skip to content

Feature | Add "Command Timeout" connection string property#722

Merged
cheenamalhotra merged 7 commits into
dotnet:masterfrom
ErikEJ:issue-614
Sep 18, 2020
Merged

Feature | Add "Command Timeout" connection string property#722
cheenamalhotra merged 7 commits into
dotnet:masterfrom
ErikEJ:issue-614

Conversation

@ErikEJ

@ErikEJ ErikEJ commented Sep 3, 2020

Copy link
Copy Markdown
Contributor

This allow the default CommandTimeout of 30 seconds to be overridden, without any code changes.

fixes #614

QUESTION re missing docs:
I am not familiar with the way XML docs are created here, should I add something similar to this:
https://github.com/dotnet/SqlClient/blob/master/doc/snippets/Microsoft.Data.SqlClient/SqlCommand.xml#L1217
in the SqlConnection.xml and SqlConnectionString.xml files?

@cheenamalhotra

cheenamalhotra commented Sep 9, 2020

Copy link
Copy Markdown
Member

QUESTION re missing docs:
I am not familiar with the way XML docs are created here, should I add something similar to this:
https://github.com/dotnet/SqlClient/blob/master/doc/snippets/Microsoft.Data.SqlClient/SqlCommand.xml#L1217
in the SqlConnection.xml and SqlConnectionString.xml files?

Hi @ErikEJ

Yes, that's correct. Basically the XML files contain 1:1 documentation of all public APIs in the driver in order to use them in both NetFx and NetCore source to reduce duplication.

@ErikEJ ErikEJ marked this pull request as ready for review September 10, 2020 08:38
@ErikEJ

ErikEJ commented Sep 10, 2020

Copy link
Copy Markdown
Contributor Author

@cheenamalhotra This is ready for review now 😄

Comment thread doc/snippets/Microsoft.Data.SqlClient/SqlConnection.xml Outdated
Extend test
@cheenamalhotra cheenamalhotra added this to the 2.1.0-preview2 milestone Sep 16, 2020
@cheenamalhotra cheenamalhotra added the Public API 🆕 Issues/PRs that introduce new APIs to the driver. label Sep 16, 2020
@cheenamalhotra cheenamalhotra merged commit 81052d6 into dotnet:master Sep 18, 2020
@cheenamalhotra cheenamalhotra changed the title Adds "Command Timeout" connection string option Feature | Add "Command Timeout" connection string property Sep 18, 2020
@ErikEJ

ErikEJ commented Sep 18, 2020

Copy link
Copy Markdown
Contributor Author

Thanks for getting this in, a very useful new feature imho.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Public API 🆕 Issues/PRs that introduce new APIs to the driver.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Is it possible to add keyword "Command Timeout" to the connection string

3 participants